Skip to content

Swap encryption pr4 cpu io overhead#6787

Open
DevVegeta wants to merge 8 commits into
GoogleCloudPlatform:masterfrom
ashishsuneja:swap-encryption-pr4-cpu-io-overhead_new
Open

Swap encryption pr4 cpu io overhead#6787
DevVegeta wants to merge 8 commits into
GoogleCloudPlatform:masterfrom
ashishsuneja:swap-encryption-pr4-cpu-io-overhead_new

Conversation

@DevVegeta

@DevVegeta DevVegeta commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

feat(swap_encryption/pr4): Phase 2 — CPU overhead and I/O interference under swap pressure

Stacked PR 4/5. Inherits PR1 framework (swap_config as NodepoolSpec field).
Benchmark nodepool provisioned automatically by GKE cluster creation.

Phase 2 additions:

  • _autoscale_vm_bytes(): sizes memory pressure to 110% of available RAM
  • Multi-worker stress-ng --vm with --rand-set to force LRU eviction to swap
  • vmstat/pidstat sampling: measures kswapd, kcryptd, dmcrypt_write CPU% under swap pressure
  • I/O interference: baseline fio throughput vs under-pressure fio to measure encryption overhead
  • DaemonSet: adds stress-ng, cgroup-tools, gcc/make/bc/flex/bison/libelf-dev/libssl-dev; pre-fetches kernel source for Phase 3b

…5); manifest moved to data/cluster and rendered via vm_util
…KS stub

- Remove duplicate FLAGS = flags.FLAGS
- Add _configure_eks_kubelet_swap() stub (deferred to PR GoogleCloudPlatform#6780)
- DaemonSet: remove workload tools; separate PKB pods (r3457826290)
- Remove cgroup v2 unlock hack (r3457928855)
- Pre-fetch kernel source for Phase 3b
- Fix COS_CONTAINERD -> UBUNTU_CONTAINERD (r3472549985)
@DevVegeta DevVegeta force-pushed the swap-encryption-pr4-cpu-io-overhead_new branch from 79fc7be to 3162242 Compare June 25, 2026 15:04
- Prepare() uses SwapNodePool + SwapDaemonSet from spec.resources
- Cleanup() is empty - PKB framework auto-deletes spec.resources
- All _pod_exec(pod, ...) calls replaced with daemonset.PodExec(...)
- DaemonSet: remove workload tools; separate PKB pods (r3457826290)
- Remove cgroup v2 unlock hack (r3457928855)
- Pre-fetch kernel source for Phase 3b
- Fix COS_CONTAINERD -> UBUNTU_CONTAINERD (r3472549985)
Inherits PR1 framework changes (swap_config as NodepoolSpec field).

- Prepare(): deploy SwapDaemonSet + _delete_default_pool(cluster)
- Phase 2: stress-ng vmstat/pidstat sampling (kswapd/kcryptd CPU%)
- DaemonSet: adds stress-ng + build tools, pre-fetches kernel source
@DevVegeta DevVegeta force-pushed the swap-encryption-pr4-cpu-io-overhead_new branch from 375b070 to bce82f7 Compare June 29, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant